package com.laowang.project.websocket;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * app消息对象 tb_message
 *
 * @author laowang
 * @date 2022-07-14
 */
@NoArgsConstructor
@Data
public class TbMessage implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 内容
     */
    @Excel(name = "内容")
    @ApiModelProperty(value = "内容", required = false)
    private String content;

    /**
     * 标题
     */
    @Excel(name = "标题")
    @ApiModelProperty(value = "标题", required = false)
    private String title;

    /**
     * 默认0未读,1已读
     */
    @Excel(name = "默认0未读,1已读")
    @ApiModelProperty(value = "默认0未读,1已读", required = false)
    private Integer isRead;

    /**
     * 发送给那个用户
     */
    @Excel(name = "发送给那个用户")
    @ApiModelProperty(value = "发送给那个用户", required = false)
    private Long toUserId;

    /**
     * 消息类型1下单,3通知
     */
    @Excel(name = "消息类型1系统消息")
    @ApiModelProperty(value = "消息类型1系统消息,2个人聊天信息", required = false)
    private Integer type;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;


}
